package lormi.meipin.vo;

import lormi.meipin.common.Constants;
import lormi.meipin.util.DateUtil;

/**
 * 个人通知栏数据结构
 * */
public class TalentNoticeVo {
	
	private Integer merid;
	
	private String photo;
	
	private String name;
	
	private String company;
	
	private String content;
	
	private Integer type;//1:关注（收藏）,2:查看,3：新发布
	
	private String url;//1:icon_g@3x.png,2:icon_k@3x.png,3：icon_s@3x.png
	
	private String date;

	public Integer getMerid() {
		return merid;
	}

	public void setMerid(Integer merid) {
		this.merid = merid;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	/**
	 * 设置不同类型的提示内容
	 * */
	public String getContent() {
		this.content = Constants.getContent(this.type,1);
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 设置不同类型的地址
	 * */
	public String getUrl() {
		this.url = Constants.getUrl(type);
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 设置自定义的时间
	 * */
	public String getDate() {
		return DateUtil.getTime(this.date);
	}

	public void setDate(String date) {
		this.date = date;
	}
	
	

}
